package br.ufpe.cin.camid.sample;

import br.ufpe.cin.camid.core.events.Core;
import br.ufpe.cin.camid.core.lifecycle.ManagedObjectEvent;

import com.google.common.eventbus.Subscribe;
import com.google.inject.Singleton;

@Singleton
public class SimpleEventHandler 
{
	
	private ManagedObjectEvent lastEvent;
	
	@Core
	@Subscribe
	public void handleEvent(ManagedObjectEvent event)
	{
		lastEvent = event;
	}

	public ManagedObjectEvent getLastEvent() {
		return lastEvent;
	}
	
	
	
}
